@extends('admin.layout.index')
@section('title', '')
@section('header', '添加用户')
@section('con')
	<div class="col-lg-12">
    <div class="panel panel-default">
        <div class="panel-body">
            <div class="row">
            	@if (count($errors) > 0)
            	    <div class="alert alert-danger">
            	        <ul>
            	            @foreach ($errors->all() as $error)
            	                <li>{{ $error }}</li>
            	            @endforeach
            	        </ul>
            	    </div>
            	@endif
                <div class="col-lg-6 col-lg-offset-3">
                    <form role="form" method="post" action="{{url('/admin/user/insert')}}" enctype="multipart/form-data">
                        <div class="form-group">
                            <label>用户名</label>
                            <input class="form-control" type="text" name="name" value="{{old('username')}}">
                        </div>
                        <div class="form-group">
                            <label>密码</label>
                            <input class="form-control" type="password" name="password" value="{{old('repassword')}}">
                        </div>
                        <div class="form-group">
                            <label>重复密码</label>
                            <input class="form-control" type="password" name="repassword" value="{{old('repassword')}}">
                        </div>
                         <label>选择用户</label>
                        <select class="form-control" name="auth">
                            <option value="0">普通用户</option>
                            <option value="1">管理员</option>
                            <option value="2">未知待改</option>
                        </select>
                        <br><br>
                        {{ csrf_field() }}
                        <button class="btn btn-default" type="submit">提交</button>
                        <button class="btn btn-default" type="reset">重置</button>
                    </form>
                </div>
             
            </div>
            <!-- /.row (nested) -->
        </div>
        <!-- /.panel-body -->
    </div>
    <!-- /.panel -->
</div>
@endsection